package cn.ck.demo.service.impl;

import cn.ck.demo.bean.Student;
import cn.ck.demo.dao.StudentDao;
import cn.ck.demo.service.StudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Resource
    StudentDao studentDao;

    @Override
    public List<Student> findAllStudent() {
        return studentDao.findAllStudent();
    }
}
